<?if ($this->redirect) print_r($this->redirect);
?>



<? $usersession = new \Zend_Session_Namespace("usersession");


            if(isset($_COOKIE['user_id']))
            {   $smn= new \Managers\Security();


                                   $id=$smn->dsCrypt($_COOKIE['user_id'],1);
                                   while (strpos($id, 'asdfefsf.') !== false)
                                   {
                                       $id = str_replace('asdfefsf.', '', $id);
                                   } ;
//                                    setcookie("val",$id,time()*2,"/");



                $usersession->user_id=$id;
                if(!$usersession->usr['name']){
                $usersession->usr['name']=$smn->dsCrypt($_COOKIE['user_name'],1);
            }}
        ?>


<div id="header">
 <? if ($usersession->user_id) {
                if ($usersession->usr['name']) print_r('<h1><a href="http://localhost/account/userpage"
           id="logo">'.$usersession->usr['name']); }else { ?>
           <h1><a href="http://localhost/"
           id="logo">
        Catalog<span style="color:#cbcbcb">Perfect</span><? }?>@</a></h1>
</div>

<div class="subheader shbg1">
    <?= $this->translate('Every business has daily micronews : a few sentences and picture.') ?>
</div>

<div class="subheader shbg2">
    <div style="display: block;"
         id="newstablo"><?= $this->translate('Fixed forms were substited with "gluon structure": you may input any type of attributes and any quantity of fields.') ?></div>
</div>




